﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace SimpleBomberman
{
    public class ExitDoor : GameObject
    {
        #region Constructors

        public ExitDoor() : base() { }
        public ExitDoor(int x, int y, int length) : base(x, y, length) { }
        
        #endregion Constructors

        #region Public Methods

        public override void Draw(Graphics g)
        {
            Pen chocolatePen = new Pen(Color.Chocolate);
            Rectangle rectangle = new Rectangle(this.X, this.Y, this.Length - 1, this.Length - 1);

            //--- Chocolate color ---
            g.DrawRectangle(chocolatePen, rectangle);
            g.FillRectangle(Brushes.Chocolate, rectangle);

            //--- Black color ---
            g.FillRectangle(System.Drawing.Brushes.Black, this.X + 0, this.Y + 0, 30, 4);
            g.FillRectangle(System.Drawing.Brushes.Black, this.X + 0, this.Y + 0, 4, 30);
            g.FillRectangle(System.Drawing.Brushes.Black, this.X + 0, this.Y + 26, 30, 4);
            g.FillRectangle(System.Drawing.Brushes.Black, this.X + 26, this.Y + 0, 4, 30);

            g.FillRectangle(System.Drawing.Brushes.Black, this.X + 13, this.Y + 0, 4, 30);

            g.FillRectangle(System.Drawing.Brushes.Black, this.X + 7, this.Y + 12, 4, 7);
            g.FillRectangle(System.Drawing.Brushes.Black, this.X + 19, this.Y + 12, 4, 7);
        }

        #endregion Public Methods
    }
}
